﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpage/QuanLy.Master" AutoEventWireup="true"
    CodeBehind="InHoaDonHocPhi.aspx.cs" Inherits="DT5_Anh09110006_Hung09110044_Vu09110157.QuanLy.InHoaDonHocPhi" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>Hóa Đơn Học Phí</title>
    <style type="text/css">
        #ihdhp
        {
            background: url("../Image/menu_focus.png") no-repeat scroll transparent;
            color: #FFFFFF;
            left: -6px;
            padding: 19px 18px 19px 25px;
        }
        .style1
        {
            width: 100px;
            padding-left: 20px;
            height: 30px;
        }
        .style2
        {
            width: 200px;
            height: 30px;
        }
    </style>
     <script type="text/javascript">
         function printDiv(divName) {
             var printContents = document.getElementById(divName).innerHTML;
             var originalContents = document.body.innerHTML;

             document.body.innerHTML = printContents;

             window.print();

             document.body.innerHTML = originalContents;

         }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1 style="padding-left: 40px">
        Xuất Hóa Đơn Học Phí</h1>
    <table style="margin: 10px 20px 10px 20px; width: 95%" cellpadding="10px">
    <tr>
    <td colspan="2">
      <asp:ValidationSummary ID="ValidationSummary1" ValidationGroup="TimKiem" runat="server"
                    ForeColor="Red" />
    </td>
    </tr>
        <tr>
            <td>
                <asp:Panel ID="Panel2" runat="server" GroupingText="Tìm kiếm học viên">
                    <table style="margin-left: 20px" cellpadding="5px">
                        <tr>
                            <td class="style1">
                            Mã học viên:
                            </td>
                            <td class="style2">
                                <asp:DropDownList ID="ddlMaHocVien" runat="server" Width="205px" 
                                    AutoPostBack="True" onselectedindexchanged="ddlMaHocVien_SelectedIndexChanged">
                                </asp:DropDownList>
                               
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                            </td>
                            <td class="style2">
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                            </td>
                            <td class="style2">
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                            </td>
                            <td class="style2">
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                            </td>
                            <td class="style2">
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                            </td>
                            <td class="style2">
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
            <td>
                <asp:Panel ID="Panel1" runat="server" GroupingText="Thông tin in">
                    <div id="printableArea">
                    <table style="margin-left: 20px" cellpadding="5px">
                        <tr>
                            <td class="style1">
                                Mã học viên:
                            </td>
                            <td class="style2">
                                <asp:Label ID="lblMaHV" runat="server" Width="200px" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Họ và Tên:
                            </td>
                            <td class="style2">
                                <asp:Label ID="lblbHoTenHV" runat="server" Width="200px" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Địa Chỉ:
                            </td>
                            <td class="style2">
                                <asp:Label ID="lblDiaChiHV" runat="server" Width="200px" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Số Điện Thoại:
                            </td>
                            <td class="style2">
                                <asp:Label ID="lblDienThoai" runat="server" Width="200px" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Tổng Học Phí:
                            </td>
                            <td class="style2">
                                <asp:Label ID="lblHocPhi" runat="server" Width="200px" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                            </td>
                            <td class="style2">
                            </td>
                        </tr>
                    </table>
                    </div>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="button" value="In hóa đơn" onclick="printDiv('printableArea')" class="btnIn" id="NutInHoaDon" />
                </asp:Panel>
            </td>
        </tr>
    </table>
</asp:Content>
